package ServletDemo;

/**
 * 、用 JavaBean 实现统计用户访问网站的次数。
 */
public class Counter {
    public int count;

    public Counter() {
        count = 0;
    }

    public int getCount() {
        count++;
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
